<ui:composition template="master.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="title">
        Reizen overzicht
    </ui:define>

    <ui:define name="content">
        
        <h1>Reizen overzicht</h1>
        <br />
        
        <h:form id="form">  
            <p:dataTable var="basisReis" value="#{controllerReisZoeken.zoekenReizen}">       
                <p:column headerText="Stadnaam">  
                    <h:outputText value="#{basisReis.bestemming.stadNaam}" />  
                </p:column>
                <p:column headerText="Begin datum">  
                    <h:outputText value="#{basisReis.beginDatum}">
                        <f:convertDateTime pattern="d/M/yyyy"/>
                    </h:outputText>
                </p:column>  
                <p:column headerText="Eind datum">  
                    <h:outputText value="#{basisReis.eindDatum}">
                        <f:convertDateTime pattern="d/M/yyyy"/>
                    </h:outputText>  
                </p:column>  
                <p:column headerText="Prijs per persoon">  
                    <h:outputText value="#{basisReis.prijsPerPersoon}" />  
                </p:column> 
                <p:column headerText="">  
                    <a href="#{controllerBoeking.ga(basisReis.id)}">Boeken</a>
                </p:column> 
            </p:dataTable>  
        </h:form>
        <br />
    </ui:define>  
</ui:composition>
